package com.dynabook.ems.model.vo;

import cn.idev.excel.annotation.ExcelProperty;
import cn.idev.excel.annotation.format.DateTimeFormat;
import cn.idev.excel.annotation.write.style.ColumnWidth;
import cn.idev.excel.annotation.write.style.HeadFontStyle;
import cn.idev.excel.annotation.write.style.HeadStyle;
import cn.idev.excel.enums.BooleanEnum;
import cn.idev.excel.enums.poi.FillPatternTypeEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;

/**
 * BOM导出VO
 */
@Data
@ApiModel(value = "BOM导出信息", description = "BOM导出数据")
@ColumnWidth(20)
@HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, fillForegroundColor = 40)
@HeadFontStyle(bold = BooleanEnum.TRUE)
public class BomExportVO {
    
    /**
     * BOM编号
     */
    @ExcelProperty(value = "BOM单号", index = 0)
    @ApiModelProperty(value = "BOM单号")
    private String bomNum;
    
    /**
     * 成品型号
     */
    @ExcelProperty(value = "成品型号", index = 1)
    @ApiModelProperty(value = "成品型号")
    private String productName;
    
    /**
     * BOM版本
     */
    @ExcelProperty(value = "BOM版本", index = 2)
    @ApiModelProperty(value = "BOM版本")
    private String version;
    
    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间", index = 3)
    @DateTimeFormat("yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate insertTime;

    /**
     * 成品名称
     */
    @ExcelProperty(value = "成品名称", index = 4)
    @ApiModelProperty(value = "成品名称")
    private String finishProductName;
    /**
     * 机型名称
     */
    @ExcelProperty(value = "机型名称", index = 5)
    @ApiModelProperty(value = "机型名称")
    private String machineName;

    /**
     * 机型类型
     */
    @ExcelProperty(value = "样品型号", index = 6)
    @ApiModelProperty(value = "样品型号")
    private String modelType;
    /**
     * 机型名称
     */
    @ExcelProperty(value = "样品名称", index = 7)
    @ApiModelProperty(value = "样品名称")
    private String modelName;

    /**
     * 数量
     */
    @ExcelProperty(value = "数量", index = 8)
    @ApiModelProperty(value = "数量")
    private String modelNumber;

    /**
     * 单位
     */
    @ExcelProperty(value = "单位", index = 9)
    @ApiModelProperty(value = "单位")
    private String modelUnit;

    /**
     * 类型
     */
    @ExcelProperty(value = "类型", index = 10)
    @ApiModelProperty(value = "类型")
    private String modelCategory;

     /**
      * 备注
      */
     @ExcelProperty(value = "备注", index = 11)
     @ApiModelProperty(value = "备注")
     private String remark;



} 